import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'
import Upgrade from './components/Upgrade.vue'
import Simulation from './components/iqy/Simulation.vue'
import CallInterface from './components/iqy/CallInterface.vue'
import Upstream from './components/c2/Upstream.vue'
import Downstream from './components/c2/Downstream.vue'

Vue.use(Router)

export default new Router({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/about',
      name: 'about',
      // route level code-splitting
      // this generates a separate chunk (about.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import(/* webpackChunkName: "about" */ './views/About.vue')
    },
    {
      path: '/tools/upgrade',
      name: 'upgrade',
      component: Upgrade
    },
    {
      path: '/iqy/simulation',
      name: 'simulation',
      component: Simulation
    },
    {
      path: '/iqy/callinterface',
      name: 'CallInterface',
      component: CallInterface
    },
    {
      path: '/c2/upstream',
      name: 'Upstream',
      component: Upstream
    },
    {
      path: '/c2/downstream',
      name: 'Downstream',
      component: Downstream
    }
  ]
})
